-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Do not say the wrong default behavior for blittable arrays in ComInterfaceGenerator warning #88212
Conversation
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsFixes #88205. The warning used to say the default is [In] for blittable arrays, when the default is [In, Out].
|
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueContentsMarshalKindValidator.cs
Outdated
Show resolved
Hide resolved
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueContentsMarshalKindValidator.cs
Show resolved
Hide resolved
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueContentsMarshalKindValidator.cs
Outdated
Show resolved
Hide resolved
...me.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/GeneratorDiagnostic.cs
Outdated
Show resolved
Hide resolved
...me.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/GeneratorDiagnostic.cs
Outdated
Show resolved
Hide resolved
...me.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/GeneratorDiagnostic.cs
Outdated
Show resolved
Hide resolved
...raries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Tests/RcwAroundCcwTests.cs
Outdated
Show resolved
Hide resolved
...s/gen/Microsoft.Interop.SourceGeneration/Marshalling/StaticPinnableManagedValueMarshaller.cs
Outdated
Show resolved
Hide resolved
...icrosoft.Interop.SourceGeneration/Marshalling/UnmanagedToManagedOwnershipTrackingStrategy.cs
Outdated
Show resolved
Hide resolved
...raries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Unit.Tests/CompileFails.cs
Outdated
Show resolved
Hide resolved
…erop.SourceGeneration/Marshalling/ByValueContentsMarshalKindValidator.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…kip generation of the wrappers if we have any diagnostics.
…use of "unnecessary" diagostics).
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs
Outdated
Show resolved
Hide resolved
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs
Outdated
Show resolved
Hide resolved
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs
Outdated
Show resolved
Hide resolved
...teropServices/gen/ComInterfaceGenerator/Marshallers/ComInterfaceDispatchMarshallerFactory.cs
Outdated
Show resolved
Hide resolved
...es/gen/Microsoft.Interop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs
Outdated
Show resolved
Hide resolved
...ervices/gen/Microsoft.Interop.SourceGeneration/Marshalling/CustomTypeMarshallingGenerator.cs
Outdated
Show resolved
Hide resolved
...ime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/DelegateMarshaller.cs
Outdated
Show resolved
Hide resolved
…erop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…erop.SourceGeneration/Marshalling/CustomTypeMarshallingGenerator.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…erop.SourceGeneration/Marshalling/DelegateMarshaller.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…enerator/Marshallers/ComInterfaceDispatchMarshallerFactory.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…erop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…erop.SourceGeneration/Marshalling/ByValueMarshalKindSupportDescriptor.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…erop.SourceGeneration/Marshalling/ByValueContentsMarshalKindValidator.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only remaining concern is the commented-out test cases in CompileFails.cs. Let's either enable them or open an issue and add that issue link before them (as we can't use [ActiveIssue]
for specific test cases).
Failures are known |
Fixes #88205. The warning used to say the default is [In] for blittable arrays, when the default is [In, Out].
Reworks how Unnecessary / Not supported / supported [In, Out] diagnostic reporting is implemented. Each marshaller will decide which details are provided with the diagnostic and which attributes are unnecessary.
Shares a single Strings.resx with all projects. "Com" or "LibraryImport" suffixes were added to string names that conflicted.